<template>
  <div>
    <el-table
      ref="multipleTable"
      :data="tableData"
      tooltip-effect="dark"
      style="width: 100%"
      @selection-change="handleSelectionChange">
      <el-table-column
        type="selection"
        width="55"/>
      <el-table-column
        label="日期"
        width="120">
        <template slot-scope="scope">{{ scope.row.date }}</template>
      </el-table-column>
      <el-table-column
        prop="name"
        label="姓名"
        width="120"/>
      <el-table-column
        prop="address"
        label="地址"
        show-overflow-tooltip/>
    </el-table>
    <div style="margin-top: 20px">
      <el-button @click="toggleSelection(tableData)">反选</el-button>
      <el-button @click="toggleSelection()">取消选择</el-button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-08',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-06',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-07',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }],
      multipleSelection: [],
      testArr: []
    }
  },
  created() {
    // console.log(this.testArr)
    var str = '{"code":200,"message":"success","data":{"pagination":{"totalPages":18258,"page":1,"prev":1,"next":2,"limit":0,"offset":20,"total":365153},"list":[{"id":"809095","account_id":"42","category_id":"9774","product_name":"MagiDeal Waterproof Dust Cover for Front Washing Machine Roller -XL Style 1","type":"1","spu_id":"9019040558","status":"130","mercado_url_id":"","create_time":"1556444745","update_time":"1556445217","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Living and Dining Room","istore_product_id":"53036034","discount_price":"18.39","quantity":"7","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"809095","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822737","account_id":"42","category_id":"9774","product_name":"MagiDeal Waterproof Dust Cover for Front Washing Machine Roller -XL Style 1","type":"1","spu_id":"9019040558","status":"130","mercado_url_id":"","create_time":"1556444745","update_time":"1556445217","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Living and Dining Room","istore_product_id":"53036034","discount_price":"18.39","quantity":"7","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"809095","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53036034","product_id":"822737","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/265/53036034/53036034_5_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"809076","account_id":"42","category_id":"9619","product_name":"Beauty Clay Purple Backflow Incense Home Tea Decoration Incense  #1","type":"1","spu_id":"9017431722","status":"130","mercado_url_id":"","create_time":"1554886339","update_time":"1554897965","is_deleted":1,"site_code":"Mercadolibre.com","category_name":"Incense Holders","category_pname":"Candles, Candle Holders and Incense","istore_product_id":"53029191","discount_price":"25.09","quantity":"999","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"809076","is_custom_quantity":"0","custom_quantity":"999","child_product":[{"id":"822718","account_id":"42","category_id":"9619","product_name":"Beauty Clay Purple Backflow Incense Home Tea Decoration Incense  #1","type":"1","spu_id":"9017431722","status":"130","mercado_url_id":"","create_time":"1554886339","update_time":"1554897965","is_deleted":1,"site_code":"Mercadolibre.com","category_name":"Incense Holders","category_pname":"Candles, Candle Holders and Incense","istore_product_id":"53029191","discount_price":"25.09","quantity":"999","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"809076","is_custom_quantity":"0","custom_quantity":"999"}],"istorePid":"53029191","product_id":"822718","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/271/53029191/53029191_5_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"809061","account_id":"43","category_id":"38577","product_name":"Newborn Baby Milk Powder Box Snack Container Feeding Box Case  Blue","type":"1","spu_id":"9017427730","status":"130","mercado_url_id":"","create_time":"1554884237","update_time":"1554896498","is_deleted":1,"site_code":"Mercadolibre.com1  ","category_name":"Other","category_pname":"Baby Safety","istore_product_id":"55025794","discount_price":"11.53","quantity":"999","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"809061","is_custom_quantity":"0","custom_quantity":"10","child_product":[{"id":"822703","account_id":"43","category_id":"38577","product_name":"Newborn Baby Milk Powder Box Snack Container Feeding Box Case  Blue","type":"1","spu_id":"9017427730","status":"130","mercado_url_id":"","create_time":"1554884237","update_time":"1554896498","is_deleted":1,"site_code":"Mercadolibre.com1  ","category_name":"Other","category_pname":"Baby Safety","istore_product_id":"55025794","discount_price":"11.53","quantity":"999","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"809061","is_custom_quantity":"0","custom_quantity":"10"}],"istorePid":"55025794","product_id":"822703","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/278/55025794/55025794_2_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808906","account_id":"42","category_id":"17216","product_name":"Travel Luggage Suitcase Security Safe 3 Digit Lock Padlock TSA Approved-BLK","type":"1","spu_id":"9017472007","status":"130","mercado_url_id":"","create_time":"1553050388","update_time":"1556428744","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Camera Accessories","istore_product_id":"53013262","discount_price":"14.42","quantity":"0","gross_margin":"18.00","custom_price":"99999999.00","custom_price_type":"0","is_custom_price":"1","advt_id":"808906","is_custom_quantity":"0","custom_quantity":"0","child_product":[{"id":"822544","account_id":"42","category_id":"17216","product_name":"Travel Luggage Suitcase Security Safe 3 Digit Lock Padlock TSA Approved-BLK","type":"1","spu_id":"9017472007","status":"130","mercado_url_id":"","create_time":"1553050388","update_time":"1556428744","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Camera Accessories","istore_product_id":"53013262","discount_price":"14.42","quantity":"0","gross_margin":"18.00","custom_price":"99999999.00","custom_price_type":"0","is_custom_price":"1","advt_id":"808906","is_custom_quantity":"0","custom_quantity":"0"}],"istorePid":"53013262","product_id":"822544","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/263/53013262/53013262_1_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808893","account_id":"42","category_id":"9658","product_name":"Cute Cat Design Bedroom Night Light Colorful Changing Cartoon Animal Lamp","type":"1","spu_id":"9014729711","status":"130","mercado_url_id":"","create_time":"1553050298","update_time":"1553740710","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Lighting","istore_product_id":"53013297","discount_price":"23.44","quantity":"1","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808893","is_custom_quantity":"0","custom_quantity":"0","child_product":[{"id":"822531","account_id":"42","category_id":"9658","product_name":"Cute Cat Design Bedroom Night Light Colorful Changing Cartoon Animal Lamp","type":"1","spu_id":"9014729711","status":"130","mercado_url_id":"","create_time":"1553050298","update_time":"1553740710","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Lighting","istore_product_id":"53013297","discount_price":"23.44","quantity":"1","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808893","is_custom_quantity":"0","custom_quantity":"0"}],"istorePid":"53013297","product_id":"822531","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/271/53013297/53013297_18_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808888","account_id":"42","category_id":"14776","product_name":"Portable Tool Mini Sealer Food Bags Handheld Heat Sealer Sealing Machine #5","type":"1","spu_id":"9014729337","status":"130","mercado_url_id":"","create_time":"1553050262","update_time":"1554052293","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Construction Material","istore_product_id":"53013304","discount_price":"11.87","quantity":"14","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808888","is_custom_quantity":"0","custom_quantity":"999","child_product":[{"id":"822526","account_id":"42","category_id":"14776","product_name":"Portable Tool Mini Sealer Food Bags Handheld Heat Sealer Sealing Machine #5","type":"1","spu_id":"9014729337","status":"130","mercado_url_id":"","create_time":"1553050262","update_time":"1554052293","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Construction Material","istore_product_id":"53013304","discount_price":"11.87","quantity":"14","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808888","is_custom_quantity":"0","custom_quantity":"999"}],"istorePid":"53013304","product_id":"822526","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/260/53013304/53013304_14_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808886","account_id":"42","category_id":"9683","product_name":"Hand Push Broom Room Floor Sidewalk Dust Sweeping Sweeper Cleaner Mop Blue","type":"1","spu_id":"9014729190","status":"130","mercado_url_id":"","create_time":"1553050247","update_time":"1553740707","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Bars and Display Cabinets","category_pname":"Living and Dining Room","istore_product_id":"53013308","discount_price":"21.14","quantity":"12","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808886","is_custom_quantity":"0","custom_quantity":"888","child_product":[{"id":"822524","account_id":"42","category_id":"9683","product_name":"Hand Push Broom Room Floor Sidewalk Dust Sweeping Sweeper Cleaner Mop Blue","type":"1","spu_id":"9014729190","status":"130","mercado_url_id":"","create_time":"1553050247","update_time":"1553740707","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Bars and Display Cabinets","category_pname":"Living and Dining Room","istore_product_id":"53013308","discount_price":"21.14","quantity":"12","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808886","is_custom_quantity":"0","custom_quantity":"888"}],"istorePid":"53013308","product_id":"822524","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/264/53013308/53013308_3_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808868","account_id":"43","category_id":"14956","product_name":"9mm 4pairs Oval Hollow Back Doll Eyes Dollfie Eyes Eyeballs 4-Color Plastic New","type":"1","spu_id":"9014226186","status":"130","mercado_url_id":"","create_time":"1552571260","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Furniture and Appliances","category_pname":"Cars, Furniture and Accessories","istore_product_id":"15007794","discount_price":"9.19","quantity":"6","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808868","is_custom_quantity":"1","custom_quantity":"0","child_product":[{"id":"822506","account_id":"43","category_id":"14956","product_name":"9mm 4pairs Oval Hollow Back Doll Eyes Dollfie Eyes Eyeballs 4-Color Plastic New","type":"1","spu_id":"9014226186","status":"130","mercado_url_id":"","create_time":"1552571260","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Furniture and Appliances","category_pname":"Cars, Furniture and Accessories","istore_product_id":"15007794","discount_price":"9.19","quantity":"6","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808868","is_custom_quantity":"1","custom_quantity":"0"}],"istorePid":"15007794","product_id":"822506","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/274/15007794/image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808867","account_id":"43","category_id":"14971","product_name":"15 Dolls House Miniature Porcelain Tea Set Dish Cup Saucer Blue Flower Print","type":"1","spu_id":"9014226185","status":"130","mercado_url_id":"","create_time":"1552571253","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Dolls and Accessories","istore_product_id":"15010742","discount_price":"14.12","quantity":"6","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808867","is_custom_quantity":"0","custom_quantity":"11","child_product":[{"id":"822505","account_id":"43","category_id":"14971","product_name":"15 Dolls House Miniature Porcelain Tea Set Dish Cup Saucer Blue Flower Print","type":"1","spu_id":"9014226185","status":"130","mercado_url_id":"","create_time":"1552571253","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Dolls and Accessories","istore_product_id":"15010742","discount_price":"14.12","quantity":"6","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808867","is_custom_quantity":"0","custom_quantity":"11"}],"istorePid":"15010742","product_id":"822505","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/261/15010742/10010742_13_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808866","account_id":"43","category_id":"14971","product_name":"Pink Carnation Rose Flower Plant in Vase Miniature fit 1/12 Dollhouse Home Decor","type":"1","spu_id":"9014226184","status":"130","mercado_url_id":"","create_time":"1552571247","update_time":"1553970983","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Dolls and Accessories","istore_product_id":"15011066","discount_price":"17.47","quantity":"4","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808866","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822504","account_id":"43","category_id":"14971","product_name":"Pink Carnation Rose Flower Plant in Vase Miniature fit 1/12 Dollhouse Home Decor","type":"1","spu_id":"9014226184","status":"130","mercado_url_id":"","create_time":"1552571247","update_time":"1553970983","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Dolls and Accessories","istore_product_id":"15011066","discount_price":"17.47","quantity":"4","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808866","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"15011066","product_id":"822504","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/261/15011066/10011066_2_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808865","account_id":"43","category_id":"15142","product_name":"1/6 Scale Narrow Shoulder Male Nude Action Figure Muscle Body w/ Neck For TTM19","type":"1","spu_id":"9014226183","status":"130","mercado_url_id":"","create_time":"1552571234","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Toy Soldiers","category_pname":"Dolls and Action Figures","istore_product_id":"15011595","discount_price":"25.48","quantity":"20","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808865","is_custom_quantity":"0","custom_quantity":"111","child_product":[{"id":"822503","account_id":"43","category_id":"15142","product_name":"1/6 Scale Narrow Shoulder Male Nude Action Figure Muscle Body w/ Neck For TTM19","type":"1","spu_id":"9014226183","status":"130","mercado_url_id":"","create_time":"1552571234","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Toy Soldiers","category_pname":"Dolls and Action Figures","istore_product_id":"15011595","discount_price":"25.48","quantity":"20","gross_margin":"18.00","custom_price":"10000.00","custom_price_type":"1","is_custom_price":"1","advt_id":"808865","is_custom_quantity":"0","custom_quantity":"111"}],"istorePid":"15011595","product_id":"822503","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/268/15011595/10011595_16_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808864","account_id":"43","category_id":"15186","product_name":"12 Mixed-color Plastic Frog Toads Amphibian Animal Model Figures Kids Favor Toys","type":"1","spu_id":"9014226181","status":"130","mercado_url_id":"","create_time":"1552571180","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Toys","istore_product_id":"15014030","discount_price":"12.59","quantity":"66","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808864","is_custom_quantity":"0","custom_quantity":"666","child_product":[{"id":"822502","account_id":"43","category_id":"15186","product_name":"12 Mixed-color Plastic Frog Toads Amphibian Animal Model Figures Kids Favor Toys","type":"1","spu_id":"9014226181","status":"130","mercado_url_id":"","create_time":"1552571180","update_time":"1554286867","is_deleted":0,"site_code":"Mercadolibre.com1  ","category_name":"Others","category_pname":"Toys","istore_product_id":"15014030","discount_price":"12.59","quantity":"66","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808864","is_custom_quantity":"0","custom_quantity":"666"}],"istorePid":"15014030","product_id":"822502","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/255/15014030/image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808859","account_id":"42","category_id":"9467","product_name":"LCD Digital Hygrometer Thermometer Temperature Meter Clock Wet Hygrometer","type":"1","spu_id":"9013014617","status":"130","mercado_url_id":"","create_time":"1550741502","update_time":"1553740700","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Utensils","category_pname":"Kitchen Tools","istore_product_id":"53014287","discount_price":"19.39","quantity":"3","gross_margin":"18.00","custom_price":"1111.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808859","is_custom_quantity":"0","custom_quantity":"666","child_product":[{"id":"822497","account_id":"42","category_id":"9467","product_name":"LCD Digital Hygrometer Thermometer Temperature Meter Clock Wet Hygrometer","type":"1","spu_id":"9013014617","status":"130","mercado_url_id":"","create_time":"1550741502","update_time":"1553740700","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Utensils","category_pname":"Kitchen Tools","istore_product_id":"53014287","discount_price":"19.39","quantity":"3","gross_margin":"18.00","custom_price":"1111.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808859","is_custom_quantity":"0","custom_quantity":"666"}],"istorePid":"53014287","product_id":"822497","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/271/53014287/image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808847","account_id":"42","category_id":"30431","product_name":"Skull Statue Figurine Human Head Headband Skeleton Replica Model Masquerades","type":"1","spu_id":"9013014603","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1553586513","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Brazil Republic Post 1942","istore_product_id":"53014444","discount_price":"22.02","quantity":"3","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808847","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822485","account_id":"42","category_id":"30431","product_name":"Skull Statue Figurine Human Head Headband Skeleton Replica Model Masquerades","type":"1","spu_id":"9013014603","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1553586513","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Brazil Republic Post 1942","istore_product_id":"53014444","discount_price":"22.02","quantity":"3","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808847","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014444","product_id":"822485","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/266/53014444/53014444_6_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808831","account_id":"42","category_id":"9944","product_name":"Motion Sensor Automatic Sliding Part for Automatic Sliding Door Controller","type":"1","spu_id":"9013014573","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052282","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Sensors","category_pname":"Alarms","istore_product_id":"53014558","discount_price":"42.55","quantity":"6","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808831","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822469","account_id":"42","category_id":"9944","product_name":"Motion Sensor Automatic Sliding Part for Automatic Sliding Door Controller","type":"1","spu_id":"9013014573","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052282","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Sensors","category_pname":"Alarms","istore_product_id":"53014558","discount_price":"42.55","quantity":"6","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808831","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014558","product_id":"822469","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/272/53014558/image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808827","account_id":"42","category_id":"38640","product_name":"Pack 20pcs Cistmas Tree Candy Ribbon Boxes Wedding Birthday Favor Rose Red","type":"1","spu_id":"9013014565","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052281","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014566","discount_price":"9.74","quantity":"6","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808827","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822465","account_id":"42","category_id":"38640","product_name":"Pack 20pcs Cistmas Tree Candy Ribbon Boxes Wedding Birthday Favor Rose Red","type":"1","spu_id":"9013014565","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052281","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014566","discount_price":"9.74","quantity":"6","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808827","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014566","product_id":"822465","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/271/53014566/53014566_5_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808826","account_id":"42","category_id":"38640","product_name":"20pcs Wedding Car Shape Gift Boxes Holder Wedding Baby Shower Favor White","type":"1","spu_id":"9013014556","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052281","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014563","discount_price":"18.00","quantity":"5","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808826","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822464","account_id":"42","category_id":"38640","product_name":"20pcs Wedding Car Shape Gift Boxes Holder Wedding Baby Shower Favor White","type":"1","spu_id":"9013014556","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052281","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014563","discount_price":"18.00","quantity":"5","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808826","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014563","product_id":"822464","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/268/53014563/53014563_4_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808819","account_id":"42","category_id":"38640","product_name":"50pcs Laser Cut Heart Shape Cake Paper Wraps Cupcake Wrapper Wedding Pink","type":"1","spu_id":"9013014560","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052278","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014587","discount_price":"15.35","quantity":"13","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808819","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822458","account_id":"42","category_id":"38640","product_name":"50pcs Laser Cut Heart Shape Cake Paper Wraps Cupcake Wrapper Wedding Pink","type":"1","spu_id":"9013014560","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052278","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Weddings","category_pname":"Party Favors","istore_product_id":"53014587","discount_price":"15.35","quantity":"13","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808819","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014587","product_id":"822458","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/274/53014587/53014587_4_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808817","account_id":"42","category_id":"30019","product_name":"18cm Metal Piggy Bank Desk Organizer Money Saving Coin Change Box Case White","type":"1","spu_id":"9013014543","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052278","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Barbies","istore_product_id":"53014629","discount_price":"30.82","quantity":"8","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808817","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822455","account_id":"42","category_id":"30019","product_name":"18cm Metal Piggy Bank Desk Organizer Money Saving Coin Change Box Case White","type":"1","spu_id":"9013014543","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052278","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Barbies","istore_product_id":"53014629","discount_price":"30.82","quantity":"8","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808817","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014629","product_id":"822455","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/271/53014629/53014629_2_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0},{"id":"808815","account_id":"42","category_id":"30019","product_name":"18cm Metal Piggy Bank Desk Organizer Money Saving Coin Change Box Case Pink","type":"1","spu_id":"9013014539","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052277","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Barbies","istore_product_id":"53014632","discount_price":"25.02","quantity":"18","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808815","is_custom_quantity":"0","custom_quantity":null,"child_product":[{"id":"822453","account_id":"42","category_id":"30019","product_name":"18cm Metal Piggy Bank Desk Organizer Money Saving Coin Change Box Case Pink","type":"1","spu_id":"9013014539","status":"130","mercado_url_id":"","create_time":"1550741501","update_time":"1554052277","is_deleted":0,"site_code":"Mercadolibre.com","category_name":"Others","category_pname":"Barbies","istore_product_id":"53014632","discount_price":"25.02","quantity":"18","gross_margin":"18.00","custom_price":"0.00","custom_price_type":"0","is_custom_price":"0","advt_id":"808815","is_custom_quantity":"0","custom_quantity":null}],"istorePid":"53014632","product_id":"822453","product_image":"https://i-bosity-com.oss-cn-hongkong.aliyuncs.com/product_img/265/53014632/53014632_1_image.jpg","is_set_custom_price":1,"is_cancel_custom_price":0}],"statistics":[{"key":100,"label":"Draft","total":188617},{"key":110,"label":"Pending Processing Status","total":0},{"key":120,"label":"Ready To Publish Status","total":83931},{"key":130,"label":"Published Status","total":365153},{"key":140,"label":"Out Of Stock Status","total":19146},{"key":150,"label":"Deleted Status","total":36184},{"key":170,"label":"Classification Complete","total":65343},{"key":510,"label":"Long Title","total":3864},{"key":520,"label":"Long Description","total":32},{"key":"shelved","label":"已下架","total":36181},{"key":"wait_shelve","label":"待下架","total":1230}]}}'
    // this.testArr.push(JSON.parse(str))
    // console.log(this.testArr)
    const { data } = JSON.parse(str)
    // console.log(code)
    // console.log('message:  ' + message)
    // console.log(data)
    const { statistics } = data
    // console.log(list)
    // console.log(statistics)
    // 遍历statistics 拼接为字符串显示在控制台
    this._.map(statistics, val => {
      let info = ''
      for (var key in val) {
        info += val[key] + '  '
      }
      console.log(info)
    })
    const token = '{"ask":1,"msg":"\u83b7\u53d6\u7528\u6237\u6210\u529f","data":{"c_id":"466","customer_id":"A0200","customer_firstname":"","customer_lastname":"","customer_email":"ynpan@sfcservice.com","customer_telephone":"123456789","customer_fax":null,"customer_status":"1","return_package_proccess":"0","customer_last_update":"2019-04-30","customer_date_reg":"2014-04-10 09:39:33","customer_activate_code":null,"customer_order_cnt":"20190428-8","customer_company_name":"Suntek","customer_logo":"","customer_intro":null,"customer_verify_code":"","languages_id":"1","division_id":"2","billing_methods":"1","sales_user_id":"0","customer_service_user_id":"0","reg_step":"3","not_check_label":"0","is_insure":"1","is_kingdee":"1","is_freightwith":"0","customer_allocation_center_id":"1","is_mark_iship":"1","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC8xMjMuNTguNDQuMjQwOjgwODFcL2FwaVwvY3VzdG9tZXJcL2dldFRva2VuIiwiaWF0IjoxNTU2NTk1ODMwLCJleHAiOjE1NTY1OTk0MzAsIm5iZiI6MTU1NjU5NTgzMCwianRpIjoibDlkcFQxcXVLc3ZobVhkTiIsInN1YiI6IjIyMjAwIiwicHJ2IjoiOGFlNTUyYTBiZTQxODQzOTVmZGI3OGU3N2ViZDI2MjZiNzM3YThjZSIsImN1c3RvbWVyX2lkIjoiQTAyMDAiLCJlbWFpbCI6ImZ3dUBzZmNzZXJ2aWNlLmNvbSIsInBob25lIjoiNDAwNDAwIiwic3ViX2FjY291bnRfbmFtZSI6IiJ9.BpmL74w6qQpgTGYfht6oyyGDvdzd45SiyjS7IF5bXH4","warehouseStatus":1}}'
    console.log(JSON.parse(token))
    const obj = this._.assign(JSON.parse(token), { 'c ': 123 })
    console.log(obj)
    // const users = [
    //   { 'user': 'barney', 'age': 36, 'active': true },
    //   { 'user': 'fred', 'age': 40, 'active': false }
    // ]
    // const filterUser = users.filter((v) => !v.active)
    // console.log(`filterUser`)
    // console.log(filterUser)
    // sessionStorage.name = 'yanwencheng'
    // console.log(sessionStorage.getItem('name'))
    const test = "À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ '"
    const arr = test.split(' ')
    console.log(arr.length)
  },
  methods: {
    toggleSelection(rows) {
      if (rows) {
        rows.forEach(row => {
          this.$refs.multipleTable.toggleRowSelection(row)
        })
      } else {
        this.$refs.multipleTable.clearSelection()
      }
    },
    handleSelectionChange(val) {
      this.multipleSelection = val
    }
  }
}
</script>
